﻿using System;

namespace K9Nano.MultiTenancy
{
    /// <summary>
    /// 租户缓存，应该在程序启动时全量加载，见 <see cref="ITenantCacheLoader"/>
    /// </summary>
    public interface ITenantCache
    {
        string Get(Guid id);
        Guid Get(string name);
        void Set(TenantInfo tenant);
        void Delete(TenantInfo tenant);
    }
}